    public function actionMainlogin()
    {
        $callback = 'no callback';

        if (isset($_POST['username']) && isset($_POST['password'])) {

            $post_data = array(
                    'account' => $_POST['username'],
                    'password' => md5($_POST['password']),
                );
            $postdata = http_build_query($post_data);
            $options = array(
                    'http' => array(
                    'method' => 'POST',
                    'header' => 'Content-type:application/x-www-form-urlencoded',
                    'content' => $postdata,
                    'timeout' => 15 * 60 
                        )
                    );
            $url = 'http://www.xinrenwang.cn/index.php/App/Login/into';
            $context = stream_context_create($options);
            $result = file_get_contents($url, false, $context);
            $callback = $result;
        }

        $this->render("mainlogin", array(
            'callback' => $callback,
            ));

    }